<?php

/**
 * Common controller
 */
class Common extends SM_ADMIN_Controller
{

    //assign $var to this field
    private $_data;

    /**
     * Initialization
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Index
     */
    public function index()
    {

    }

    /**
     * get avatar
     *
     * @global type $CFG
     * @param type $path
     */
    public function image_avatar($path = '')
    {
        if (!empty($path)) {
            global $CFG;
            $pathAvatar = base64_encode($CFG->item('folder_avatar') . $path);
            image_url($pathAvatar);
        }
    }

}
